<%--
  Created by IntelliJ IDEA.
  User: mr.chan
  Date: 2019-11-04
  Time: 15:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
    <title>易买网 - 首页</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/scripts/function.js"></script>
</head>
<%--
  Created by IntelliJ IDEA.
  User: poresw
  Date: 2020/9/21 0021
  Time: 14:19
=======
<%--
  Created by IntelliJ IDEA.
  User: konoha
  Date: 2020/9/17
  Time: 9:19
>>>>>>> bd163e0237bc4bbc3fb185e36ff1acb4ca8758ee
  To change this template use File | Settings | File Templates.
--%>
<body>
<div id="header" class="wrap">
    <div id="logo"><img src="${pageContext.request.contextPath}/images/logo.gif" /></div>
    <div class="help">
        <c:if test="${lgnUser!=null}">
            <marquee style="...">
                <span style="...">亲! ${lgnUser.euUserId} 欢迎回来</span>
            </marquee>
        </c:if>

        <a href="${pageContext.request.contextPath}/product/addCar" class="shopping">购物车</a><a href="${pageContext.request.contextPath}/login/to_login">登录</a><a href="${pageContext.request.contextPath}/register/re">注册</a><a href="${pageContext.request.contextPath}/comment/front/list">留言</a></div>

    <div class="navbar">
        <ul class="clearfix">
            <li class="current"><a href="${pageContext.request.contextPath}/index/front">首页</a></li>
            <li><a href="#">图书</a></li>
            <li><a href="#">百货</a></li>
            <li><a href="#">品牌</a></li>
            <li><a href="#">促销</a></li>
        </ul>
    </div>
</div>
<div id="childNav">
    <div class="wrap">
        <ul class="clearfix">
            <li class="first"><a href="#">音乐</a></li>
            <li><a href="#">影视</a></li>
            <li><a href="#">少儿</a></li>
            <li><a href="#">动漫</a></li>
            <li><a href="#">小说</a></li>
            <li><a href="#">外语</a></li>
            <li><a href="#">数码相机</a></li>
            <li><a href="#">笔记本</a></li>
            <li class="last"><a href="#">Investor Relations</a></li>
        </ul>
    </div>
</div>
<div id="main" class="wrap">
    <div class="lefter">
        <div class="box">
            <h2>商品分类</h2>
            <dl>
                <c:forEach items="${bigClassList}" var="bigClassList">
                    <dt><a href="${pageContext.request.contextPath}/index/smallCategoryList?page=${currentPage}&parentId=${bigClassList.epcId}">>${bigClassList.epcName}</a></dt>
                </c:forEach>
                <div class="box">
                    <c:forEach items="${smallClassList}" var="smallClass">
                        <dd><a href="${pageContext.request.contextPath}/index/likeList?parentId=${smallClass.epcParentId}&inEpName=${smallClass.epcName}">${smallClass.epcName}</a></dd>
                    </c:forEach>
                </div>
            </dl>
        </div>
        <div class="spacer"></div>
        <div class="last-view">
            <h2>最近浏览</h2>
            <dl class="clearfix">
                <dt><img src="${pageContext.request.contextPath}/images/product/0_tiny.gif" /></dt>
                <dd><a href="">Audio-Technica ATH-EQ300M-SV</a></dd>
                <dt><img src="${pageContext.request.contextPath}/images/product/0_tiny.gif" /></dt>
                <dd><a href="">Audio-Technica ATH-EQ300M-SV</a></dd>
            </dl>
        </div>
    </div>
    <div class="main">
        <div class="price-off">
            <h2>商品列表</h2>
            <ul class="product clearfix">
                <c:forEach items="${frontProduct}" var="frontProduct">
                    <li>
                        <dl>
                            <dt><a href="${pageContext.request.contextPath}/index/productView?epId=${frontProduct.epId}&epName=${frontProduct.epName}&epDescription=${frontProduct.epDescription}&epPrice=${frontProduct.epPrice}&epStock=${frontProduct.epStock}&epFileName=${frontProduct.epFileName}&parentId=${frontProduct.epcId}" target="_blank"><img src="../images/product/${frontProduct.epFileName}" /></a></dt>
                            <dd class="title"><a href="${pageContext.request.contextPath}/index/productView?epId=${frontProduct.epId}&epName=${frontProduct.epName}&epDescription=${frontProduct.epDescription}&epPrice=${frontProduct.epPrice}&epStock=${frontProduct.epStock}&epFileName=${frontProduct.epFileName}&parentId=${frontProduct.epcId}" target="_blank">${frontProduct.epName}</a></dd>
                            <dd class="price">${frontProduct.epPrice}</dd>
                        </dl>
                    </li>
                </c:forEach>
            </ul>

            <div class="pager">
                <ul class="clearfix">
                    <li><a href="${pageContext.request.contextPath}/index/front?page=${currentPage>1? currentPage-1:1}">上一页</a></li>
                    <c:forEach var="i" begin="${currentPage>3?currentPage-3:1}" end="${(maxPage-currentPage)>3?currentPage+3:maxPage}" step="1">
                        <li <c:if test="${i==currentPage}"> class="current" </c:if>>
                            <a href="${pageContext.request.contextPath}/index/front?page=${i}">${i}</a>
                        </li>
                    </c:forEach>
                    <li><a href="${pageContext.request.contextPath}/index/front?page=${currentPage<maxPage? currentPage+1:maxPage}">下一页</a></li>
                    <li>共${maxPage}页</li>
                </ul>
            </div>

        </div>
        <div class="side">
            <div class="spacer"></div>
            <div class="news-list">
                <h4>新闻动态</h4>
                <ul>
                    <c:forEach items="${ebNewsList}" var="news">
                        <li><a href="news-view.html" target="_blank">${news.enTitle}</a></li>
                    </c:forEach>

                </ul>


            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div id="footer">
    Copyright &copy; 2016 湖南软测信息技术有限公司 All Rights Reserved. 湘ICP证1001号
</div>

</body>
</html>

